import request from '@/utils/request'

const api_path = `/api/user`

export default {
    //登录功能
    login(userInfo) {
        return request({
            url: `${api_path}/login`,
            method: `post`,
            data: userInfo
        })
    },
    //用户认证
    userAuth(userauth){
        return request({
            url: `${api_path}/auth/userAuth`,
            method: `post`,
            data: userauth
        })
    },
    //获取用户id信息接口
    getUserInfo(){
        return request({
            url: `${api_path}/getUserInfo`,
            method: `get`
        })
    }
}